package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import entity.Users;

public interface IUserDao {
	public int login(Users user);//登录
	
	public Boolean Add(Users user);//添加用户
	public Boolean Delete(int uid);//删除用户
	public List<Users> Select_All();//查询所有用户
	public Boolean Update(int num,Users user);//修改用户
	public Boolean IsExsist(String name);//根据name查询是否存在用户
	public boolean IsExsist(int uid);//根据id查询是否存在用户
	public Users SelectByID(String name);//根据name查询用户
	public Users SelectByID(int Uid);//根据id查询用户
	public int GetAllCount();//获取所有数据
	public List<Users> queryusersbypage(int CurrenPage,int PageSize);//分页
}